package com.wx.tgp.designpattern.templateMethodPattern;

/**
 * 模版方法模式
 */
public class Client {

    public static void main(String args[]){
        AbstractClass class1;
        class1 = new ClassA();
        class1.templateMethod();
        class1 = new ClassB();
        class1.templateMethod();
    }
}
